import random

question = [{'Question':'白日依山尽','Answer':'王之涣', '难度':'0.6','出题人':'王老师'},
            {'Question':'春风桃李花开日','Answer':'白居易', '难度':'0.3','出题人':'白老师'},
            {'Question':'会当凌绝顶','Answer':'杜甫', '难度':'0.9','出题人':'杜老师'},
            ]

while 1==1:
    i = random.randint(0, 2)
    print('Hard: ', question[i]['难度'])
    s = input('请输入' + question[i]['Question'] + '的作者：')
    if s == question[i]['Answer']:
        print('答对了~~~~~~~')
    else:
        print('错!!!!!!!')
